package jm.demo.auth.domain;


import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;



@XmlType(propOrder={"street", "id"})
@XmlRootElement
public class Address {
    private Integer id;
    private String  street;

    
    
    
    public Address() {
		super();
	}
    
	public Address(Integer id, String street) {
		super();
		this.id = id;
		this.street = street;
	}
	
	
	public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    
    
    @XmlElement(name="Street")
    public String getStreet() {
        return street;
    }
    public void setStreet(String street) {
        this.street = street;
    }

    
    
    
    
    @Override
	public String toString() {
		return "Address [id=" + id + ", street=" + street + "]";
	}

	public static Address getAddressOne() {
    	return new Address(1, "street 1");
    }
    
    public static Address getAddressTwo() {
    	return new Address(2, "street 2");
    }
    
}
